package fastwave.cloud.demo.fastwave.biz.subscriber.services;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <p>Title: EmailReceiver</p>
 * <p>Description: </p>
 *
 * @author: dwLiu
 * @date: 2020/4/7 0:01
 */
@Component
public class BlogReceiver {

    @RabbitListener(queues = "BlogJavaQueue")
    public void receiverJava(String msg){
        System.out.println("收到Java的消息："+msg);
    }

    @RabbitListener(queues = "BlogDotNetQueue")
    public void receiverDotNet(String msg){
        System.out.println("收到DotNet的消息："+msg);
    }

    @RabbitListener(queues = "BlogAllQueue")
    public void receiverAll(String msg){
        System.out.println("收到ALL的消息："+msg);
    }
}
